Skip to content

public Election::isVoteValidUnderConstraints ​

Read it at the source

Description ​

php
public Election->isVoteValidUnderConstraints ( CondorcetPHP\Condorcet\Vote $vote ): bool

Test if a vote is valid with these election constraints.

Parameter ​

vote: CondorcetPHP\Condorcet\Vote ​

A vote. Not necessarily registered in this election.

Return value ​

(bool) Return True if vote will pass the constraints rules, else False.



Tutorial ​

Released under the MIT License.